/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package objective_functions;

/**
 *
 * @author robson
 */
public class Sphere_2D_F1 implements ObjectiveFunction {

    public double function( double[] dimension ) {
        double sum = 0;
        
        for( int i = 0; i < dimension.length; i++ ) {
            sum += dimension[i] * dimension[i]; 
        }
        return sum;
    }
    
    public double getGValue() {
        return 0;
    }    
}
